<template>
  <div v-if="Object.keys(paramInfo).length !== 0">
    <table v-for="(item1,index1) in paramInfo.sizes" :key="index1">
      <tr v-for="(item2,index2) in item1" :key="index2">
        <td v-for="(item3,index3) in item2" :key="index3">
          {{item3}}
        </td>
      </tr>
    </table>

    <table class="bottom-board">
      <tr v-for="(item,index) in paramInfo.infos" :key="index">
        <td class="infos-key">{{item.key}}</td>
        <td class="infos-value">{{item.value}}</td>
      </tr>
    </table>

    <div class="info-img" v-if="paramInfo.image.length !== 0">
      <img :src="paramInfo.image" alt="">
    </div>
  </div>
</template>

<script>
  export default {
    name: "DetailParamInfo",
    props: {
      paramInfo:{
        type:Object,
        default(){
          return {}
        }
      }
    }
  }
</script>

<style scoped>
  .bottom-board{
    border-bottom: 3px solid rgba(100,100,100,.1);
    margin-bottom: 13px;
  }
  .infos-key{
    width: 23%;
  }
  .infos-value{
    color: #ff5777;
  }
  table{
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-top: 3px solid rgba(100,100,100,.1);
  }
  td{
    padding: 10px;
    border-bottom: 1px solid rgba(100,100,100,.1);
  }
</style>